<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改国家信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
		<form id="fm" method="post" enctype="multipart/form-data">
			<table>
				<tr>
					<td><label>名称:</label></td>
					<td>
						<input name="countryName"  data-options="required:true,validType:'length[0,64]'"
					class="easyui-validatebox" value="${country.countryName }">
					</td>
				</tr>
				<tr>
					<td><label>归属的洲:</label></td>
					<td><input id="continentId" name="continentId"  required="true"></td>
				</tr>
				<tr>
					<td><label>国家名称（中文）:</label></td>
					<td>
						<input class="easyui-validatebox" name="countryNameZh" value="${country.countryNameZh }" data-options="required:true,validType:'length[0,32]'"/>
					</td>
				</tr>
				<tr>
					<td><label>国家名称（英文）:</label></td>
					<td>
						<input class="easyui-validatebox" name="countryNameEn" value="${country.countryNameEn }" data-options="required:true,validType:'length[0,32]'"/>
					</td>
				</tr>
				<tr>
					<td><label>新国旗:</label></td>
					<td>
						<input  name="flagFile" type="file" /> 
					</td>
				</tr>
				<tr>
					<td><label>旧国旗:</label></td>
					<td>
						<img src="${image_domain}${country.countryOrigFlag}" width=200px height=160px/> 
					</td>
				</tr>
				
				<tr>
					<td>
					<input type="hidden" value="${country.countryId}" name="countryId">
					<input type="hidden" value="${country.countryOrigFlag}" name="countryOrigFlag">
					</td>
				</tr>
			</table>
		</form>
		<script type="text/javascript">
		  $('#continentId').combobox({  
		        url:'${cpath }/admin/country/continent/list',  
		        valueField :'continentId',  
		        textField :'continentName',
		        value :'${country.continentId}',
		        editable:false
		    }); 
		</script>
	<style type="text/css">
			#fm {
				margin: 0;
				padding: 40px 40px;
			}
			
			.ftitle {
				font-size: 14px;
				font-weight: bold;
				padding: 5px 0;
				margin-bottom: 10px;
				border-bottom: 1px solid #ccc;
			}
			
			.fitem {
				margin-bottom: 5px;
			}
			
			.fitem label {
				display: inline-block;
				width: 90px;
			}
			
		 </style>
</body>
</html>